﻿<%@ Page Title="Manage Unit Types" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ManageUnitTypes.aspx.cs" Inherits="TeamPrasioliteWarGame.Admin.ManageUnitTypes" %>
<asp:Content ID="ManageUnitTypes" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView runat="server" ID="GridViewAllUnitTypes" SelectMethod="GridViewAllUnitTypes_GetData"
        ItemType="TeamPrasioliteWarGame.Models.GameUnit"
        DataKeyNames="Id"
        UpdateMethod="GridViewAllUnitTypes_UpdateItem"
        DeleteMethod="GridViewAllUnitTypes_DeleteItem"
        CssClass="table-striped table-hover table table-bordered">
        <Columns>
            <asp:CommandField ShowEditButton="true" ShowDeleteButton="true" HeaderText="Actions"/>
        </Columns>
    </asp:GridView>
    <asp:Button Text="Insert" ID="ShowInsert" CssClass="btn btn-info" runat="server" OnClick="ShowInsert_Click" />
    <asp:Panel runat="server" ID="InsertPanel" Visible="false" CssClass="panel">
        <asp:TextBox runat="server" placeholder="Enter unit type..." ID="NewUnitType" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter unit attack..." ID="NewUnitAttack" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter unit defence..." ID="NewUnitDefence" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter unit food cost..." ID="NewUnitFoodCost" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter unit iron cost..." ID="NewUnitIronCost" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter unit hit points..." ID="newUnitHP" />
        <br />
        <asp:TextBox runat="server" placeholder="Enter unit build time..." ID="NewUnitBuildTime" />
        <br />
        <asp:LinkButton Text="Create" runat="server" CssClass="btn btn-warning" ID="CreateButton" OnCommand="CreateButton_Command" />
        <asp:LinkButton Text="Cancel" runat="server" CssClass="btn btn-danger" ID="CancelButton" OnCommand="CancelButton_Command" />
    </asp:Panel>
</asp:Content>
